<h2>Navn: {$name}</h2>
<p>Generell info:<br />{$info} <br /><br /></p>
<p>Regler: <br />{$rules}</p>
<p>Antall spillere: <br />{$activeplayers}/{$numberofplayers}</p>
Påmeldte spillere
<ul>
{foreach from=$players item=user}
<li>{$user}</li>
{foreachelse}
Ingen spillere
{/foreach}
</ul>

{if isset($active)}
	<p>
		{if ($active)}Du er allerede paameldt
		{elseif (!$started)}<a href="?page={$page}&join=yes&name={$name}">Delta i turnering</a>
		{/if}
	</p>
{else}
<p>Turneringen er full. Se <a href="?page=bracket&name={$name}">brackets</a></p>
{/if}

{if $admin && !($brackets_generated)}
<p><a href="?page=bracket&name={$name}">Generer kampoppsett</a></p>
{/if}

{if $brackets_generated}
<p><a href="?page=bracket&name={$name}">Se kampoppsett</a></p>
{/if}

<p><a href="?page=tournaments">Tilbake til turneringer</a></p>

<pre>{php}print_r($players){/php}</pre>